﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Zero.Model;
using Zero.Code;
using Zero.DAL;

namespace Zero.BLL
{
    /// <summary>
    /// 用户登录信息逻辑层
    /// 作者：edl
    /// 最后修改日期：2019-9-21
    /// </summary>
    public class UserLogInfo
    {
        /// <summary>
        /// 登录
        /// </summary>
        /// <param name="username">用户名</param>
        /// <param name="password">密码</param>
        /// <returns></returns>
        public string CheckLogin(string username,string password)
        {
            return new Zero.DAL.UserLogInfo().CheckLogin(username,password);
        }

        /// <summary>
        /// 获取用户信息
        /// </summary>
        /// <param name="UserId">用户ID</param>
        /// <returns></returns>
        public users GetUserInfo(int UserId)
        {
            return new DAL.UserLogInfo().GetUserInfo(UserId);
        }
    }
}
